package com.fpt.edu.vn.h2tv.service;

import com.fpt.edu.vn.h2tv.dao.ITbBookDAO;
import com.fpt.edu.vn.h2tv.dao.TbBookDAO;

public class TestDAO {
public static void main(String...args){
//    TbBook book = new TbBook("name", "author", 400l, (short)3, (short)3, 5, (double)3, new Timestamp(System.currentTimeMillis()), new Timestamp(System.currentTimeMillis()));
//    ITbBookDAO dao = new TbBookDAO();
//    EntityManagerHelper.beginTransaction();
//    dao.save(book);
//    EntityManagerHelper.commit();
    ITbBookDAO dao = new TbBookDAO();
    dao.findAll(0, 0, 0);
    //EntityManagerHelper.commit();
}
}
